/*
 * Project Name spring-boot-tools
 * File Name Constants
 * Package Name com.huxiaosu.tools.mina.utils
 * Create Time 2024/5/25
 * Create by name：liujie
 */
package com.huxiaosu.tools.mina.utils;

import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CharsetEncoder;
import java.nio.charset.StandardCharsets;

/**
 * Description
 *
 * @author liujie
 * @date 2024/5/25 13:17
 */
public class Constants {
    /** 心跳 */
    public final static byte   T101                   = 101;
    /** 注册 */
    public final static byte   T102                   = 102;
    public final static byte   T103                   = 103;

    /** 成功*/
    public final static int    SUCCESS                = 200;
    /** 失败*/
    public final static int    FAILURE                = 500;
    /** 统一编码*/
    public final static String CHARSET               = "UTF-8";
    public final static CharsetDecoder CHARSET_DECODER         = StandardCharsets.UTF_8.newDecoder();
    public final static CharsetEncoder CHARSET_ENCODER         = StandardCharsets.UTF_8.newEncoder();
}
